function ngW8_bottomAppBar($tmp) {
    window.top.ngW8.bottomAppBar = new WinJS.UI.AppBar($($tmp.$e[0])[0], { placement: 'bottom', layout: 'custom', sticky: true });
       
    window.top.ngW8.bottomAppBar.addEventListener("beforeshow", function (info) {
        if (window.top.ngW8.$onBottomBarShowCallback) {
            window.top.ngW8.$onBottomBarShowCallback($(info.srcElement).find(".win-firstdiv"));
        }
    });
    window.top.ngW8.bottomAppBar.addEventListener("beforehide", function (info) {
        if (window.top.ngW8.$onBottomBarHideCallback) {
            window.top.ngW8.$onBottomBarHideCallback($(info.srcElement).find(".win-firstdiv"));
        }
    });
}